package org.rc.six;

import com.google.gson.annotations.Expose;
import java.io.Serializable;

/**
 * Represents something to be stored in the index.
 * Will be serialized as json and stored in the index
 */
public class Document implements Serializable {

    @Expose
    private String id;

    @Expose
    private String displayName;

    @Expose
    private String text;

    /**
     * No arg constructor
     */
    public Document() {
    }

    /**
     * Constructor
     * @param id
     * @param displayName
     */
    public Document(String id, String displayName, String text) {
        this.id = id;
        this.displayName = displayName;
        this.text = text;
    }

    /**
     * @return the id
     */
    public String getId() {
        return id;
    }

    /**
     * @param id the id to set
     */
    public void setId(String id) {
        this.id = id;
    }

    /**
     * @return the displayName
     */
    public String getDisplayName() {
        return displayName;
    }

    /**
     * @param displayName the displayName to set
     */
    public void setDisplayName(String displayName) {
        this.displayName = displayName;
    }

    /**
     * @return the text
     */
    public String getText() {
        return text;
    }

    /**
     * @param text the text to set
     */
    public void setText(String text) {
        this.text = text;
    }

}
